import request from "@/utils/request";

export async function scriptPublish(appCode, clazzName) {
  return await request({
    url: '/damcAdmin/pubSub/refresh',
    method: 'post',
    data: {
      "appCode": appCode,
      "clazzName": clazzName
    }
  })
}

export async function disposablePublish(appCode, script,runnerType) {
  return await request({
    url: '/damcAdmin/pubSub/disposable',
    method: 'post',
    data: {
      "appCode": appCode,
      "script": script,
      "runnerType": runnerType
    }
  })
}
